package com.xd.core.business.entity;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.io.Serializable;
import java.util.Date;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 保单贷车辆信息
 * </p>
 *
 * @author ZX
 * @since 2025-06-19
 */
@Data
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="CarCredit对象", description="保单贷车辆信息")
public class CarCredit implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "car_id", type = IdType.AUTO)
    private Integer carId;

    @ApiModelProperty(value = "进件id")
    private Integer incomingId;

    @ExcelProperty("车牌号或新车合格证号")
    @ApiModelProperty(value = "车牌号或合格证号")
    private String carNo;

    @ExcelProperty("车架号")
    @ApiModelProperty(value = "车架号")
    private String vin;

    @ExcelProperty("发动机号")
    @ApiModelProperty(value = "发动机号")
    private String motorNo;

    @ExcelProperty("行驶证车主")
    @ApiModelProperty(value = "行驶证车主")
    private String name;

    @ExcelProperty("商业险开始日期\n" +
            "（格式为：2022/5/1）")
    @ApiModelProperty(value = "商业险开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd", shape = JsonFormat.Shape.STRING, timezone = "GMT+8")
    private Date startTime;

    @ExcelProperty("商业险结束日期\n" +
            "（格式为：2023/5/1）")
    @ApiModelProperty(value = "商业险结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd", shape = JsonFormat.Shape.STRING, timezone = "GMT+8")
    private Date endTime;

    @ExcelProperty("商业险保单金额\n" +
            "（格式为：6600.00）")
    @ApiModelProperty(value = "商业险保单金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "行驶证")
    private String drivingUrl;

    @ApiModelProperty(value = "投保单")
    private String insuranceUrl;



}
